package polymorphic;

/**
 * @ClassName Dog
 * @Description TODO
 * @Author hp
 * @Date 2021/6/15 16:36
 * @Version 1.0
 **/
public class Dog  extends Animals {
    @Override
    public void eat() {
        System.out.println("狗吃骨头");
    }

    @Override
    public void sleep() {
        System.out.println("狗睡觉");
    }

    public void   protectHome(){
        System.out.println("看家护院");
    }
}
